<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@ include file="../base.jsp"%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<script type="text/javascript" src="${ctx}/resources/js/advert.js"></script>
<head>
<title>新增分类</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>

<body>
	<div class="wrap">
		<div class="page-title">
			<span class="modular fl"><i></i><em>上传图片</em></span>
		</div>

		<table id="listinfo" class="list-style">
			<tr>
				<th>编号</th>
				<th>图片</th>
			</tr>
			<c:forEach items="${list }" var="item"  >
				<tr>
					<td>${item.id}</td>
					<td><a href="https://dsxie8888.com/${item.url}" target="_blank">预览</a></td>
				</tr>
			</c:forEach>
		</table>
	</div>
	<form action="${ctx}/advert/upload" method="post"  enctype="multipart/form-data">
		<table class="list-style list-classification" id="add-table"
				style="margin-top: 30px;">
				<tr>
					<td style="text-align: right; width: 15%;">图片：</td>
					<td><input id="input_class" name="file" type="file" /></td>
					<td><button type="button" class="btn primary" onclick="add()">添加</button></td>
				</tr>
				<tbody id="add-tbody"></tbody>
				<tr>
					<td colspan="3">
					<input  type="submit" class="btn primary" />
					</td>
				</tr>
		</table>
	</form>
</body>

</html>